package com.ljm;

import com.ljm.common.constants.SysConstants;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * @author ChenHuaMing
 * 启动类
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class, scanBasePackages = {"com.ljm"})
@MapperScan("com.ljm.**.mapper*")
@EnableAspectJAutoProxy
@EnableCaching
@EnableRedisHttpSession
@EnableScheduling
public class LjmWebApplication {

    public static void main(String[] args) {
        SysConstants.intMdc();
        SpringApplication.run(LjmWebApplication.class, args);
    }

}


